package com.ball.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.ball.dao.MatchInfoDao;
import com.ball.entity.MatchInfo;
import com.ball.service.MatchInfoService;



@Service("matchInfoService") 
public class MatchInfoServiceImpl implements MatchInfoService {

	@Resource
    private MatchInfoDao matchInfoDao;

	@Override
	public List<MatchInfo> getMatchList(String matchName,int start,int limit) {
		
		matchInfoDao.selectByPrimaryKey(1);
		return matchInfoDao.selectByPage(matchName, start, limit);
	}

	@Override
	public int saveMatch(MatchInfo matchInfo) {
		
		return matchInfoDao.insert(matchInfo);
	}
    


}
